﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SimpleMVC.Util;


namespace SimpleMVC.Filters
{
    public class CustomExceptionHandlerAttribute:HandleErrorAttribute
    {
        public override void OnException(ExceptionContext filterContext)
        {
            if (filterContext == null)
            {
                throw new ArgumentNullException("filterContext");
            }
            if (!filterContext.ExceptionHandled)
            {
                Log4NetUtil.Error("未处理的异常", filterContext.Exception);
            }
            base.OnException(filterContext);
        }
    }
}